package org.example;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.support.SimpleRegistry;

import java.util.HashMap;

public class DataTransform {
    public static void main(String[] args) throws Exception {
        System.out.println("fsaf");
        org.apache.camel.main.Main main = new org.apache.camel.main.Main();
        main.configure().addRoutesBuilder(new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("stream:in")
                        .to("stream:out");
            }
        });
        SimpleRegistry simpleRegistry = new SimpleRegistry();
        simpleRegistry.put("took", new HashMap<>());
        DefaultCamelContext defaultCamelContext = new DefaultCamelContext(simpleRegistry);
        main.run(args);

    }
}